<?php namespace Admin\Controller;
use Hdphp\Libs\Controller;
class CommonController extends Controller{
    public function __construct(){
        //为了不给父级构造方法重复
        parent::__construct();
        //分配root变量
        $this->assign("root",__ROOT__);
//        $this->display();
        //进行登陆验证
        if(!isset($_SESSION['uid'])){
            header("location:index.php?m=Admin&c=Login&a=index");
        }
    }
}
